package com.vframework.system.demo.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.vframework.base.exception.BaseException;
import com.vframework.base.service.impl.BaseServiceImpl;
import com.vframework.system.demo.mapper.DemoMapper;
import com.vframework.system.demo.model.DemoBean;
import com.vframework.system.demo.service.DemoService;

@Service
public class DemoServiceImpl extends BaseServiceImpl implements DemoService {

    @Autowired
    private DemoMapper demoMapper;
    
    public Integer getCount(Map<String, Object> paramMap) throws BaseException {
        return demoMapper.getCount(paramMap);
    }
    
    public List<DemoBean> getList(Map<String, Object> paramMap) throws BaseException {
        return demoMapper.getList(paramMap);
    }
    
    public DemoBean getById(String demoId) throws BaseException {
        return demoMapper.getById(demoId);
    }
    
    public Integer insertDemo(DemoBean demoBean) throws BaseException {
        return demoMapper.insertDemo(demoBean);
    }
    
    public Integer updateDemo(DemoBean demoBean) throws BaseException {
        return demoMapper.updateDemo(demoBean);
    }
    
    public Integer deleteDemo(String... ids) throws BaseException {
        return demoMapper.deleteDemo(ids);
    }
}
